//
//  BVMineTool.h
//  XiangYu
//
//  Created by YYKJ on 2017/6/22.
//  Copyright © 2017年 YYKJ. All rights reserved.
//

#import "BVBaseTool.h"

@interface BVMineTool : BVBaseTool

/**
 *  登录
 *
 *  @param tel   手机号
 *  @param password 密码
 *  @param success  成功回调
 *  @param failure  失败回调
 */
- (void)loginTel:(NSString *)tel
        password:(NSString *)password
         success:(void(^)(NSString *status))success
     codeFailure:(void(^)(NSString *status))codeFailure
         failure:(void(^)(NSError *error))failure;

/**
 *  重置密码
 *
 *  @param mobile  手机号
 *  @param code    验证码
 *  @param newPwd  新密码
 *  @param success 成功回调
 *  @param failure 失败回调
 */
+ (void)reSetPwdMobile:(NSString *)mobile
                newPwd:(NSString *)newPwd
                  code:(NSString *)code
               success:(void(^)(NSString *status))success
           codeFailure:(void(^)(NSString *status))codeFailure
               failure:(void(^)(NSError *error))failure;

/**
 *  获取验证码
 *
 *  @param mobile  手机号
 *  @param success 成功回调
 *  @param failure 失败回调
 */
+ (void)fetchVerifyCode:(NSString *)mobile
                success:(void(^)(NSString *status))success
                failure:(void(^)(NSError *error))failure;

/**
 *  注册
 *
 *  @param sex            性别
 *  @param dateBirth      出生日期
 *  @param address        工作地区
 *  @param maritalStatus  婚姻状况
 *  @param mobile         手机号
 *  @param pwd            密码
 *  @param success        成功回调
 *  @param failure        失败回调
 */
+ (void)registeredSex:(NSString *)sex
            dateBirth:(NSString *)dateBirth
              address:(NSString *)address
        maritalStatus:(NSString *)maritalStatus
               mobile:(NSString *)mobile
                 code:(NSString *)code
                  pwd:(NSString *)pwd
              success:(void(^)(NSString *status))success
          codeFailure:(void(^)(NSString *str))codeFailure
              failure:(void(^)(NSError *error))failure;

/**
 *  意见反馈
 *
 *  @param opinion 意见
 *  @param success 成功回调
 *  @param failure 失败回调
 */
- (void)opinionFeedback:(NSString *)opinion success:(void(^)(NSString *status))success failure:(void(^)(NSError *error))failure;

/**
 *  个人资料修改
 *
 *  @param nickName       昵称
 *  @param sex            性别
 *  @param height         身高
 *  @param professional   职业
 *  @param monthlysalary  月薪
 *  @param address        所在地
 *  @param dateBirth      出生日期
 *  @param success        成功回调
 *  @param failure        失败回调
 */
- (void)setNickName:(NSString *)nickName
                sex:(NSString *)sex
             height:(NSString *)height
          education:(NSString *)education
       professional:(NSString *)professional
      monthlysalary:(NSString *)monthlysalary
            address:(NSString *)address
          dateBirth:(NSString *)dateBirth
            success:(void(^)(NSString *status))success
            failure:(void(^)(NSError *error))failure;

/**
 *  择偶资料修改
 *
 *  @param success        成功回调
 *  @param failure        失败回调
 */
- (void)setSpouseConditionsSuccess:(void(^)(NSString *status))success
                       codeFailure:(void(^)(NSString *str))codeFailure
                           failure:(void(^)(NSError *error))failure;
/**
 *  获取择偶资料
 *
 *  @param success        成功回调
 *  @param failure        失败回调
 */
- (void)fetchSpouseConditionsSuccess:(void(^)(NSString *status))success
                       codeFailure:(void(^)(NSString *str))codeFailure
                           failure:(void(^)(NSError *error))failure;

@end
